package com.android.pinweilin.view.group;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.android.pinweilin.R;
import com.android.pinweilin.utils.ObjectUtils;

/**
 * Created by Administrator on 2017/6/30.
 */

public class BannerItemWelcomeFragment extends Fragment {
    private static final String ARG_PARAM1 = "param1";
    private static final String ARG_PARAM2 = "param2";
    private static final String ARG_PARAM3 = "param3";
    private int mParam1;
    private int mParam2;
    private String mParam3;


    public static BannerItemWelcomeFragment newInstance(int thumb) {
        BannerItemWelcomeFragment fragment = new BannerItemWelcomeFragment();
        Bundle args = new Bundle();
        args.putInt(ARG_PARAM1, thumb);
        fragment.setArguments(args);
        return fragment;
    }

    public BannerItemWelcomeFragment() {

    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (getArguments() != null) {
            mParam1 = getArguments().getInt(ARG_PARAM1);


        }
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.item_fragment_banner, null);
        ImageView iv = (ImageView) view.findViewById(R.id.imageView1);
        ObjectUtils.photoWelcome(getActivity(),mParam1, iv);
        return view;
    }



}
